package requests

type ThreadList struct {
	CategoryID string `form:"category_id" json:"category_id" binding:"omitempty"`
	Tag        string `form:"tag" json:"tag" binding:"omitempty"`
	Limit      int    `form:"limit" json:"limit" binding:"omitempty"`
	Page       int    `form:"page" json:"page" binding:"omitempty"`
	Username   string `form:"username" json:"username" binding:"omitempty"`
}

type ThreadDetail struct {
	ThreadID int `form:"thread_id" json:"thread_id" binding:"required"`
}

type ThreadSearch struct {
	Title string `form:"search" json:"search" binding:"required"`
	Limit int    `form:"limit" json:"limit" binding:"omitempty"`
	Page  int    `form:"page" json:"page" binding:"omitempty"`
}

type Thread struct {
	Content  string `form:"content" json:"content" binding:"required"`
	Title    string `form:"title" json:"title" binding:"required"`
	Tag      string `form:"tag" json:"tag" binding:"required"`
	Username string `form:"username" json:"username" binding:"omitempty"`
	Avatar   string `form:"avatar" json:"avatar" binding:"omitempty"`
}
